home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Magazine / LastMonth / PC2Amiga / LPx / LPR < prev    next >
Encoding:
AmigaDOS Script File  |  2000-10-18  |  960 b   |  42 lines

  1. .key SFile,PName
  2. .bra {
  3. .ket }
  4.  
  5. ;/*
  6. ;** $VER: LPR 1.000 (18.10.00) © <gcalzo@geocities.com>
  7. ;**
  8. ;**
  9. ;**  FUNCTION:
  10. ;**      Copies spool files received by Samba to PAR:
  11. ;**
  12. ;**      Directory Samba:Spools/{PName} must exists!
  13. ;**
  14. ;**      - SFile       spoolfile name
  15. ;**      - PName       printer queue name
  16. ;**
  17. ;**      In smb.conf use the following cmd:
  18. ;**         print command = /Samba/LPR %s %p
  19. ;**
  20. ;** $HISTORY:
  21. ;**
  22. ;** 18 Oct 2000 : 001.000 : First public release to Aminet
  23. ;** 14 Oct 2000 : 000.003 : corrected a typo into the "print command" help header! :-(
  24. ;** 05 Aug 2000 : 000.002 : added a timestamp for end of process
  25. ;** 20 Jun 2000 : 000.001 : Copies spool files received by Samba to PAR:
  26. ;**
  27. ;*/
  28.  
  29. FailAt 21
  30.  
  31. Echo >>T:LPR.log ""
  32. Date >>T:LPR.log
  33. Echo >>T:LPR.log "Printing Spoolfile={SFile} Printer={PName}"
  34.  
  35. Copy   >>T:LPR.log Samba:Spools/{PName}/{SFile} PAR:
  36. Delete >>T:LPR.log Samba:Spools/{PName}/{SFile}
  37.  
  38. Date >>T:LPR.log
  39.  
  40. FailAt 10
  41.  
  42.